<?php
/**
 * Created by xun at 2020/5/14
 */

namespace app\storage;


use app\base\ArrayHelper;
use app\base\BaseObject;

class Config
{

    use Singleton;
    public static $config;

    public function __construct($config)
    {
        self::$config = $config;
    }

    public static function setConfig($config) {
        self::$config = $config;
    }

    public static function getConfig($key)
    {
        return ArrayHelper::getValue(self::$config, $key);
    }

}